package com.javaee.service.admin;

import com.javaee.entity.Doctor;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.io.IOException;

public interface DoctorService {
   public String toAddDoctor(Doctor doctor, Model model);
   public String addDoctor( Doctor doctor, HttpServletRequest request);
   public String selectAllDoctorsByPage(Model model, int currentPage);
   public String detail(Model model, int id);
   String delete(int id);
   String toUpdate(Model model, Integer id);
   public String update(Doctor doctor, String people,HttpServletRequest request) throws Exception;
}
